package com.emergency.db.domain.item;

import com.emergency.base.domain.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;


//支援设备总表
@Entity
@Table(name = "bas_item")
public class Item extends BaseEntity {
    private String name; //名称

    private String type; //设备型号

    private String army;//所属分队,枚举;0.突击抢险1队；1.应急监测与辐射防护；2.去污洗消

    private String sGroup;// 分队名下小组 枚举

    private String team;// 分组名下小分队,枚举

    private String teamSet;//小分队名下集合,枚举

    private String address; //存放地址

    private String manager; //负责人

    private Long tel;//联系方式

    private String annex;//搭载附件

    private String itemClass;//装备类型，枚举。0.车辆;1.大型设备;2.单兵设备

    //临时属性：装备明细
    @Transient
    private ItemDetail itemDetail;

    //临时属性：装备配置人员
    @Transient
    private List<ItemUser> itemUser;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getArmy() {
        return army;
    }

    public void setArmy(String army) {
        this.army = army;
    }

    public String getsGroup() {
        return sGroup;
    }

    public void setsGroup(String sGroup) {
        this.sGroup = sGroup;
    }

    public String getTeam() {
        return team;
    }

    public void setTeam(String team) {
        this.team = team;
    }

    public String getTeamSet() {
        return teamSet;
    }

    public void setTeamSet(String teamSet) {
        this.teamSet = teamSet;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getAnnex() {
        return annex;
    }

    public void setAnnex(String annex) {
        this.annex = annex;
    }

    public String getItemClass() {
        return itemClass;
    }

    public void setItemClass(String itemClass) {
        this.itemClass = itemClass;
    }

    public ItemDetail getItemDetail() {
        return itemDetail;
    }

    public void setItemDetail(ItemDetail itemDetail) {
        this.itemDetail = itemDetail;
    }

    public Long getTel() {
        return tel;
    }

    public void setTel(Long tel) {
        this.tel = tel;
    }

    public List<ItemUser> getItemUser() {
        return itemUser;
    }

    public void setItemUser(List<ItemUser> itemUser) {
        this.itemUser = itemUser;
    }
}
